package com.ilongsay.dao;

import com.ilongsay.entity.FaPiao;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Options;

import java.util.List;

/**
 * @Author ilongsay
 * @Email ilongsay@163.com
 * @Copyright 版本所有，侵权必究！
 * @Datetime 2018-11-13 14:20
 * @Describution
 */
public interface BillDao2 {

    public List<FaPiao> findBill();

    @Insert("INSERT INTO bill(billCode,customCode,taxNum,customName,addressTel,bankInfo,note,SKR,FHR,billType,saleBank,email,mobPhone,wxham,isCEFP) values ( #{billCode},#{customCode},#{taxNum},#{customName},#{addressTel},#{bankInfo},#{note},#{SKR},#{FHR},#{billType},#{saleBank},#{email},#{mobPhone},#{wxham},#{isCEFP})")
    @Options(useGeneratedKeys = true,keyColumn = "id")
    public void insertBill1(FaPiao faPiao);
}
